// sku模块
import request from '@/utils/request'

// sku列表的接口
// /admin/product/list/{page}/{limit}   get
export const reqSkuList = (page,limit) => {
    return request({url:`/admin/product/list/${page}/${limit}`,method:'get'})
}

// 上架
// /admin/product/onSale/{skuId}    get
export const reqSale = (skuId) => {
    return request({url:`/admin/product/onSale/${skuId}`,method:'get'})
}
// 下架
// /admin/product/cancelSale/{skuId}    get
export const reqCancelSale = (skuId) => {
    return request({url:`/admin/product/cancelSale/${skuId}`,method:'get'})
}

// 获取SKU详情的接口
// /admin/product/getSkuById/{skuId}    get
export const reqSkuById = (skuId) => {
    return request({url:`/admin/product/getSkuById/${skuId}`,method:'get'})
}

// 删除SKP列表接口
// /admin/product/deleteSku/{skuId}     delete
export const reqSkuDeleteList = (skuId) => {
    return request({url:`/admin/product/deleteSku/${skuId}`,method:'delete'})
}